Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set warning-mode none for gradle build #195

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Oct 18, 2024

Description

Gradle likes to fail your builds when you use deprecated features for the next major version, unless you explicitly opt out.

OpenSearch has explicitly opted out with this line in gradle.properties:

org.gradle.warning.mode=none

Updating our CI to use the equivalent command line switch. This ignores both the gradle deprecation warnings and the javadoc warning/errors.

Also changed JDK to 21, since that's soon to be required for OpenSearch 3.x (main branch), and JDK 17 is the minimum for Gradle 8.10 which we're using via the wrapper.

Issues Resolved

Fixes #194

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dbwiddis dbwiddis requested a review from dblock as a code owner October 18, 2024 05:10
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2393216) to head (bc4f5eb).
Report is 64 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #195   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           78        78           
  Lines         2058      2061    +3     
=========================================
+ Hits          2058      2061    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of it!

@dblock dblock merged commit 461f063 into opensearch-project:main Oct 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Integration tests are failing in dependabot PRs
2 participants